package com.ruibang.glass.equipment.mapper.device;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.equipment.domain.req.IubricationManagementReq;
import com.ruibang.glass.equipment.domain.req.device.DeviceAllPageReq;
import com.ruibang.glass.equipment.dto.IubricetionStatisticsDTO;
import com.ruibang.glass.equipment.entity.device.lubricationManagement;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IubricationManagementMapper extends CommonMapper<lubricationManagement> {
    IPage<lubricationManagement> queryPage(Page<lubricationManagement> page, @Param("device") IubricationManagementReq managementReq);

    List<IubricetionStatisticsDTO> getIubricetionStatisticsDTOAll(@Param("accidentRegister") lubricationManagement accidentRegister);

    List<IubricetionStatisticsDTO> getIubricetionStatisticsDTOTimeCount(@Param("accidentRegister") lubricationManagement accidentRegister);

    List<IubricetionStatisticsDTO> getIubricetionStatisticsDTOFinishCount(@Param("accidentRegister") lubricationManagement accidentRegister);
}
